<!DOCTYPE html>
<style>
  .container {
    float: right;
  }
  .inline {
    margin-left: 50%;
  }
</style>
<p>crbug.com/598711: Compute percent margin on inlines inside shrink-to-fit containers.</p>
<div class="container">
  <span id="span" class="inline">Text</span>
</div>
<script>
  document.body.offsetTop;
  document.getElementById("span").style.outline = "1px solid red";
</script>


